package slu.appli.sound.impl;

import java.awt.Toolkit;

import slu.appli.logger.interfaces.LoggerInterface;
import slu.appli.sound.interfaces.SoundPlayerInterface;

public class SoundAWTBeep
implements SoundPlayerInterface {
	private LoggerInterface logger;

	@Override
	public void setLogger(LoggerInterface logger) {
		this.logger = logger;
	}

	@Override
	public void setFile(String fileName) {
	}

	@Override
	public void play() {
		try {
		Toolkit.getDefaultToolkit().beep();
		}
		catch (Exception e) {
			this.logger.addException(e);
		}
	}

	@Override
	public void close() {
	}
}
